import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import { setupElementPlusDiscreteApi } from '@/utils/index.js'
import { createApp } from 'vue'
import App from './App.vue'
import '@/styles/reset.css'
import '@/styles/global.css'
import 'uno.css'
import 'element-plus/theme-chalk/dark/css-vars.css'

async function bootstrap() {
  const app = createApp(App)
  setupStore(app)
  await setupRouter(app)
  app.mount('#app')
  setupElementPlusDiscreteApi()
}

bootstrap()
